@import '~antd/dist/antd.dark.css';

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #242526;
    padding: 16px 32px;
    overflow: hidden;
}

.main {
    box-sizing: border-box;
    background: #141414;
    text-align: center;
    padding: 12px 16px 0;
    height: 350px;
}

.plot-card {
    box-sizing: border-box;
    background: #141414;
    text-align: center;
    padding: 16px;
    height: calc((100vh - 4 * 16px - 350px) / 2);
}

.battle-container {
    display: flex;
    justify-content: space-between;
    overflow: auto;
}

.player {
    position: relative;
    margin-bottom: 12px;
    padding: 0 48px 0 36px;
    text-align: left;
}

.avatar {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    border-radius: 50%;
    border: 1px solid grey;
}

.item {
    width: 16px;
}

.score {
    position: absolute;
    right: 0;
    top: 0;
    text-align: right;
}

.player.vp {
    background: rgba(255, 255, 255, 0.3);
}

.player.vp:after {
    content: 'VP';
    position: absolute;
    left: -16px;
    top: -16px;
    width: 32px;
    height: 32px;
    background: orange;
    color: white;
    border-radius: 50%;
    line-height: 32px;
    text-align: center;
    font-size: 20px;
    transform: scale(.5) rotateZ(-15deg);
}

.battle-item {
    position: relative;
    min-width: 250px;
    padding: 0 8px;
    margin: 0 8px;
    flex: 1;
}

.battle-item.win {
    background: rgba(165, 255, 137, 0.3);
}

.battle-item.win:after {
    content: 'WIN';
    position: absolute;
    font-size: 120px;
    color: white;
    opacity: 0.05;
    bottom: 0;
    right: 32px;
    z-index: 1;
}

.battle-item.fail {
    background: rgba(255, 113, 123, 0.3);
}

.battle-item.fail:after {
    content: 'FAIL';
    position: absolute;
    font-size: 120px;
    color: white;
    opacity: 0.05;
    bottom: 0;
    right: 32px;
    z-index: 1;
}